/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

/* --- Explorer viewlet --- */
.explorer-viewlet,
.explorer-folders-view {
	height: 100%;
}

.explorer-folders-view .monaco-list-row {
	padding-left: 4px; /* align top level twistie with `Explorer` title label */
}

.explorer-viewlet .explorer-folders-view.highlight .monaco-list .explorer-item:not(.explorer-item-edited),
.explorer-viewlet .explorer-folders-view.highlight .monaco-list .monaco-tl-twistie {
	opacity: 0.3;
}

.explorer-viewlet .explorer-item,
.explorer-viewlet .editor-group {
	height: 22px;
	line-height: 22px;
}

.explorer-viewlet .explorer-item {
	display: flex; /* this helps showing the overflow ellipsis (...) even though we use display:inline-block for the labels */
	flex-wrap: nowrap;
}

.explorer-viewlet .explorer-item > a,
.explorer-viewlet .editor-group {
	text-overflow: ellipsis;
	overflow: hidden;
}

.explorer-viewlet .explorer-item,
.explorer-viewlet .explorer-item .monaco-inputbox {
	flex: 1;
}

.explorer-viewlet .explorer-item.cut {
	opacity: 0.5;
}

.explorer-viewlet .explorer-item.explorer-item-edited .label-name {
	flex: 0; /* do not steal space when label is hidden because we are in edit mode */
}

.explorer-viewlet .pane-header .count {
	min-width: fit-content;
	min-width: -moz-fit-content;
	display: flex;
	align-items: center;
}

.pane.horizontal:not(.expanded) .pane-header .dirty-count.monaco-count-badge,
.pane-header .dirty-count.monaco-count-badge.hidden {
	display: none;
}

.dirty-count.monaco-count-badge {
	padding: 2px 4px;
	margin-left: 6px;
	min-height: auto;
}

.explorer-viewlet .explorer-item.nonexistent-root {
	opacity: 0.5;
}

.explorer-viewlet .explorer-item .monaco-inputbox {
	width: 100%;
	line-height: normal;
}

.explorer-viewlet .explorer-item .monaco-icon-name-container.multiple > .label-name > .monaco-highlighted-label {
	border-radius: 3px;
}

.explorer-viewlet .explorer-item .monaco-icon-name-container.multiple > .label-name:hover > .monaco-highlighted-label,
.explorer-viewlet .monaco-list .monaco-list-row.focused .explorer-item .monaco-icon-name-container.multiple > .label-name.active > .monaco-highlighted-label {
	text-decoration: underline;
}

.monaco-workbench.linux .explorer-viewlet .explorer-item .monaco-inputbox,
.monaco-workbench.mac .explorer-viewlet .explorer-item .monaco-inputbox {
	height: 22px;
}

.monaco-workbench .explorer-viewlet .explorer-item .monaco-inputbox > .ibwrapper > .input {
	padding: 0;
	height: 20px;
}

/* High Contrast Theming */
.monaco-workbench.hc-black .explorer-viewlet .explorer-item {
	line-height: 20px;
}
